package com.songlanyun.modules.donation.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.songlanyun.common.drive.ValueObject;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 公益捐款
 *
 * @author lubo
 * @email sunlightcs@gmail.com
 * @date 2022-07-21 11:32:51
 */
@Data
@TableName("yxt_donation")
public class DonationEntityAuditDTO implements ValueObject {
	private static final long serialVersionUID = 1L;


	private Long id;

	/**
	 * 1已捐，2未捐
	 */
	private Integer status;
	/**
	 * 管理员
	 */
	private String auditAdmin;
	/**
	 * 实际捐款多少
	 */
	@DecimalMin(value = "0",message = "实际捐款最小0元")
	@DecimalMax(value = "99999999",message = "实际捐款最大99999999元")
	private BigDecimal factInterestAmount;
	/**
	 * 实际捐物是什么
	 */
	@Length(max = 200, message = "实际捐物的名称只能填写200字以内")
	private String factItemName;
	/**
	 * 实际捐物价值
	 */
	@DecimalMin(value = "0",message = "实际捐物价值最小0元")
	@DecimalMax(value = "99999999",message = "实际捐物价值最大99999999元")
	private BigDecimal factItemAmount;


	/**
	 * 未捐理由
	 */
	@Length(max = 200, message = "实际捐物的名称只能填写200字以内")
	private String noDonationRemark;

}
